Integrand size = 22, antiderivative size = 269 \[ \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx=\frac {(5 A b+4 a B) x \sqrt {a+b x^3}}{10 a}-\frac {A \left (a+b x^3\right )^{3/2}}{2 a x^2}+\frac {3^{3/4} \sqrt {2+\sqrt {3}} (5 A b+4 a B) \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}+\sqrt [3]{b} x\right )^2}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{a}+\sqrt [3]{b} x}{\left (1+\sqrt {3}\right ) \sqrt [3]{a}+\sqrt [3]{b} x}\right ),-7-4 \sqrt {3}\right )}{10 \sqrt [3]{b} \sqrt {\frac {\sqrt [3]{a} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}+\sqrt [3]{b} x\right )^2}} \sqrt {a+b x^3}} \]
-1/2*A*(b*x^3+a)^(3/2)/a/x^2+1/10*(5*A*b+4*B*a)*x*(b*x^3+a)^(1/2)/a+1/10*3 ^(3/4)*(5*A*b+4*B*a)*(a^(1/3)+b^(1/3)*x)*EllipticF((b^(1/3)*x+a^(1/3)*(1-3 ^(1/2)))/(b^(1/3)*x+a^(1/3)*(1+3^(1/2))),I*3^(1/2)+2*I)*(1/2*6^(1/2)+1/2*2 ^(1/2))*((a^(2/3)-a^(1/3)*b^(1/3)*x+b^(2/3)*x^2)/(b^(1/3)*x+a^(1/3)*(1+3^( 1/2)))^2)^(1/2)/b^(1/3)/(b*x^3+a)^(1/2)/(a^(1/3)*(a^(1/3)+b^(1/3)*x)/(b^(1 /3)*x+a^(1/3)*(1+3^(1/2)))^2)^(1/2)
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 6.08 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.30 \[ \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx=\frac {\sqrt {a+b x^3} \left (-A \left (a+b x^3\right )+\frac {(5 A b+4 a B) x^3 \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},\frac {1}{3},\frac {4}{3},-\frac {b x^3}{a}\right )}{2 \sqrt {1+\frac {b x^3}{a}}}\right )}{2 a x^2} \]
(Sqrt[a + b*x^3]*(-(A*(a + b*x^3)) + ((5*A*b + 4*a*B)*x^3*Hypergeometric2F 1[-1/2, 1/3, 4/3, -((b*x^3)/a)])/(2*Sqrt[1 + (b*x^3)/a])))/(2*a*x^2)
Time = 0.29 (sec) , antiderivative size = 266, normalized size of antiderivative = 0.99, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {955, 748, 759}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx\) |
\(\Big \downarrow \) 955 |
\(\displaystyle \frac {(4 a B+5 A b) \int \sqrt {b x^3+a}dx}{4 a}-\frac {A \left (a+b x^3\right )^{3/2}}{2 a x^2}\) |
\(\Big \downarrow \) 748 |
\(\displaystyle \frac {(4 a B+5 A b) \left (\frac {3}{5} a \int \frac {1}{\sqrt {b x^3+a}}dx+\frac {2}{5} x \sqrt {a+b x^3}\right )}{4 a}-\frac {A \left (a+b x^3\right )^{3/2}}{2 a x^2}\) |
\(\Big \downarrow \) 759 |
\(\displaystyle \frac {(4 a B+5 A b) \left (\frac {2\ 3^{3/4} \sqrt {2+\sqrt {3}} a \left (\sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}+\sqrt [3]{b} x\right )^2}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt [3]{b} x+\left (1-\sqrt {3}\right ) \sqrt [3]{a}}{\sqrt [3]{b} x+\left (1+\sqrt {3}\right ) \sqrt [3]{a}}\right ),-7-4 \sqrt {3}\right )}{5 \sqrt [3]{b} \sqrt {\frac {\sqrt [3]{a} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}+\sqrt [3]{b} x\right )^2}} \sqrt {a+b x^3}}+\frac {2}{5} x \sqrt {a+b x^3}\right )}{4 a}-\frac {A \left (a+b x^3\right )^{3/2}}{2 a x^2}\) |
-1/2*(A*(a + b*x^3)^(3/2))/(a*x^2) + ((5*A*b + 4*a*B)*((2*x*Sqrt[a + b*x^3 ])/5 + (2*3^(3/4)*Sqrt[2 + Sqrt[3]]*a*(a^(1/3) + b^(1/3)*x)*Sqrt[(a^(2/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2)/((1 + Sqrt[3])*a^(1/3) + b^(1/3)*x)^2]* EllipticF[ArcSin[((1 - Sqrt[3])*a^(1/3) + b^(1/3)*x)/((1 + Sqrt[3])*a^(1/3 ) + b^(1/3)*x)], -7 - 4*Sqrt[3]])/(5*b^(1/3)*Sqrt[(a^(1/3)*(a^(1/3) + b^(1 /3)*x))/((1 + Sqrt[3])*a^(1/3) + b^(1/3)*x)^2]*Sqrt[a + b*x^3])))/(4*a)
3.2.87.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[x*((a + b*x^n)^p/(n*p + 1)), x] + Simp[a*n*(p/(n*p + 1)) Int[(a + b*x^n)^(p - 1), x], x] /; Fre eQ[{a, b}, x] && IGtQ[n, 0] && GtQ[p, 0] && (IntegerQ[2*p] || LtQ[Denominat or[p + 1/n], Denominator[p]])
Int[1/Sqrt[(a_) + (b_.)*(x_)^3], x_Symbol] :> With[{r = Numer[Rt[b/a, 3]], s = Denom[Rt[b/a, 3]]}, Simp[2*Sqrt[2 + Sqrt[3]]*(s + r*x)*(Sqrt[(s^2 - r*s *x + r^2*x^2)/((1 + Sqrt[3])*s + r*x)^2]/(3^(1/4)*r*Sqrt[a + b*x^3]*Sqrt[s* ((s + r*x)/((1 + Sqrt[3])*s + r*x)^2)]))*EllipticF[ArcSin[((1 - Sqrt[3])*s + r*x)/((1 + Sqrt[3])*s + r*x)], -7 - 4*Sqrt[3]], x]] /; FreeQ[{a, b}, x] & & PosQ[a]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n _)), x_Symbol] :> Simp[c*(e*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*e*(m + 1))), x] + Simp[(a*d*(m + 1) - b*c*(m + n*(p + 1) + 1))/(a*e^n*(m + 1)) Int[(e *x)^(m + n)*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b* c - a*d, 0] && (IntegerQ[n] || GtQ[e, 0]) && ((GtQ[n, 0] && LtQ[m, -1]) || (LtQ[n, 0] && GtQ[m + n, -1])) && !ILtQ[p, -1]
Time = 4.41 (sec) , antiderivative size = 317, normalized size of antiderivative = 1.18
method | result | size |
risch | \(-\frac {\sqrt {b \,x^{3}+a}\, \left (-4 x^{3} B +5 A \right )}{10 x^{2}}-\frac {2 i \left (\frac {3 A b}{4}+\frac {3 B a}{5}\right ) \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}} \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, \sqrt {\frac {x -\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{b}}{-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}}}\, \sqrt {-\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, F\left (\frac {\sqrt {3}\, \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}}{3}, \sqrt {\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{b \left (-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right )}}\right )}{3 b \sqrt {b \,x^{3}+a}}\) | \(317\) |
elliptic | \(-\frac {A \sqrt {b \,x^{3}+a}}{2 x^{2}}+\frac {2 B x \sqrt {b \,x^{3}+a}}{5}-\frac {2 i \left (\frac {3 A b}{4}+\frac {3 B a}{5}\right ) \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}} \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, \sqrt {\frac {x -\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{b}}{-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}}}\, \sqrt {-\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, F\left (\frac {\sqrt {3}\, \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}}{3}, \sqrt {\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{b \left (-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right )}}\right )}{3 b \sqrt {b \,x^{3}+a}}\) | \(321\) |
default | \(B \left (\frac {2 x \sqrt {b \,x^{3}+a}}{5}-\frac {2 i a \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}} \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, \sqrt {\frac {x -\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{b}}{-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}}}\, \sqrt {-\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, F\left (\frac {\sqrt {3}\, \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}}{3}, \sqrt {\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{b \left (-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right )}}\right )}{5 b \sqrt {b \,x^{3}+a}}\right )+A \left (-\frac {\sqrt {b \,x^{3}+a}}{2 x^{2}}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}} \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, \sqrt {\frac {x -\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{b}}{-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}}}\, \sqrt {-\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}\, F\left (\frac {\sqrt {3}\, \sqrt {\frac {i \left (x +\frac {\left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}-\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right ) \sqrt {3}\, b}{\left (-a \,b^{2}\right )^{\frac {1}{3}}}}}{3}, \sqrt {\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{b \left (-\frac {3 \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}+\frac {i \sqrt {3}\, \left (-a \,b^{2}\right )^{\frac {1}{3}}}{2 b}\right )}}\right )}{2 \sqrt {b \,x^{3}+a}}\right )\) | \(596\) |
-1/10*(b*x^3+a)^(1/2)*(-4*B*x^3+5*A)/x^2-2/3*I*(3/4*A*b+3/5*B*a)*3^(1/2)/b *(-a*b^2)^(1/3)*(I*(x+1/2/b*(-a*b^2)^(1/3)-1/2*I*3^(1/2)/b*(-a*b^2)^(1/3)) *3^(1/2)*b/(-a*b^2)^(1/3))^(1/2)*((x-1/b*(-a*b^2)^(1/3))/(-3/2/b*(-a*b^2)^ (1/3)+1/2*I*3^(1/2)/b*(-a*b^2)^(1/3)))^(1/2)*(-I*(x+1/2/b*(-a*b^2)^(1/3)+1 /2*I*3^(1/2)/b*(-a*b^2)^(1/3))*3^(1/2)*b/(-a*b^2)^(1/3))^(1/2)/(b*x^3+a)^( 1/2)*EllipticF(1/3*3^(1/2)*(I*(x+1/2/b*(-a*b^2)^(1/3)-1/2*I*3^(1/2)/b*(-a* b^2)^(1/3))*3^(1/2)*b/(-a*b^2)^(1/3))^(1/2),(I*3^(1/2)/b*(-a*b^2)^(1/3)/(- 3/2/b*(-a*b^2)^(1/3)+1/2*I*3^(1/2)/b*(-a*b^2)^(1/3)))^(1/2))
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.09 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.21 \[ \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx=\frac {3 \, {\left (4 \, B a + 5 \, A b\right )} \sqrt {b} x^{2} {\rm weierstrassPInverse}\left (0, -\frac {4 \, a}{b}, x\right ) + {\left (4 \, B b x^{3} - 5 \, A b\right )} \sqrt {b x^{3} + a}}{10 \, b x^{2}} \]
1/10*(3*(4*B*a + 5*A*b)*sqrt(b)*x^2*weierstrassPInverse(0, -4*a/b, x) + (4 *B*b*x^3 - 5*A*b)*sqrt(b*x^3 + a))/(b*x^2)
Time = 1.22 (sec) , antiderivative size = 85, normalized size of antiderivative = 0.32 \[ \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx=\frac {A \sqrt {a} \Gamma \left (- \frac {2}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, - \frac {1}{2} \\ \frac {1}{3} \end {matrix}\middle | {\frac {b x^{3} e^{i \pi }}{a}} \right )}}{3 x^{2} \Gamma \left (\frac {1}{3}\right )} + \frac {B \sqrt {a} x \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, \frac {1}{3} \\ \frac {4}{3} \end {matrix}\middle | {\frac {b x^{3} e^{i \pi }}{a}} \right )}}{3 \Gamma \left (\frac {4}{3}\right )} \]
A*sqrt(a)*gamma(-2/3)*hyper((-2/3, -1/2), (1/3,), b*x**3*exp_polar(I*pi)/a )/(3*x**2*gamma(1/3)) + B*sqrt(a)*x*gamma(1/3)*hyper((-1/2, 1/3), (4/3,), b*x**3*exp_polar(I*pi)/a)/(3*gamma(4/3))
\[ \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx=\int { \frac {{\left (B x^{3} + A\right )} \sqrt {b x^{3} + a}}{x^{3}} \,d x } \]
\[ \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx=\int { \frac {{\left (B x^{3} + A\right )} \sqrt {b x^{3} + a}}{x^{3}} \,d x } \]
Timed out. \[ \int \frac {\sqrt {a+b x^3} \left (A+B x^3\right )}{x^3} \, dx=\int \frac {\left (B\,x^3+A\right )\,\sqrt {b\,x^3+a}}{x^3} \,d x \]